<template>
  <div>
    <h4>第五题</h4>
    <button  @click="btn">点击</button>
    <p :style="{ background : color }"></p>
  </div>
</template>

<script>
export default {
  data () {
    return {
      color:''
    }
  },
  methods:{
    btn(){
    this.color = `rgba(${Math.floor(Math.random() * 265)},
    ${Math.floor(Math.random() * 456)},
    ${Math.floor(Math.random() * 553)})`
  }
  }
}
</script>

<style scoped>
  p{
    width: 50px;
    height: 20px;
    
  }
</style>